package main

import (
	"fmt"
	"time"
)

func add(a int, b int) int {
	sum := a + b
	return sum
}

func main() {

	c := add(100, 200)
	go test_goroute(200, 300)
	fmt.Println("add(100, 200) =", c)

	for i := 0; i < 10; i++ {
		go test_print(i)
	}

	time.Sleep(3 * time.Second)

	fmt.Println("-----------------------------------")
	test_pipe()

	sum, avg := calc(10, 20)
	fmt.Println("sum=", sum, "avg=", avg)
}
